﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ConsoleApplication1
{
  public class Complex 
  {
    
    public Complex(int real, int imag) 
    {
      this.real = real;
      this.imag = imag;//X
    }
     
    private int real;
    private int imag;

    public static Complex operator +(Complex c1, Complex c2) 
    {
      Complex c3 = new Complex(c1.real + c2.real, c1.imag + c2.imag);

      return c3;
    }

  }

  class Program
  {
    static void Main(string[] args)
    {

       
      Complex c1 = new Complex(4, 5);

      Complex c2 = new Complex(5, 4);


      // (4+5x) + (5+4x) = New complex

      Complex c3 = c1 + c2;

      Console.WriteLine(c3.ToString()); // real+imagX

      //Console.WriteLine(c1 + c2);
      //c1++;


    //  //int x = 10;
    //  //int y = 11;

    //Console.WriteLine(x + y);

    }
  }
}
